package com.odianyun.hello.service.impl;

import com.odianyun.db.query.PageVO;
import com.odianyun.hello.mapper.SoReturnMapper;
import com.odianyun.hello.service.SoReturnService;
import com.odianyun.hello.model.PO.SoReturnPO;
import com.odianyun.hello.model.VO.SoReturnVO;
import com.odianyun.project.base.IEntity;
import com.odianyun.project.query.PageQueryArgs;
import com.odianyun.project.query.QueryArgs;
import com.odianyun.project.support.base.service.OdyEntityService;
import java.util.*;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class SoReturnServiceImpl extends OdyEntityService<SoReturnPO, SoReturnVO, PageQueryArgs, QueryArgs, SoReturnMapper> implements SoReturnService {
    @Resource
    private SoReturnMapper mapper;

    @Override
    protected SoReturnMapper getMapper() {
        return mapper;
    }

    @Override
	protected void afterListPage(PageVO<? extends IEntity> pageVO) {
	    for (IEntity entity : pageVO.getList()) {
	        SoReturnVO vo = (SoReturnVO) entity;
            vo.setOrderCode("orderCode");
	    }
	}



}
